<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller
{
    public function index()
    {

        $category = M("Category")->order('sort asc,u_time desc,id asc')->select();
        $category = get_category($category, GOODS_PID);


        $one = M('index')->order('c_time desc')->find();
        $this->assign('one', $one);
        $this->assign('category', $category);
        $this->display();
    }


}